package uumoi

class Image {
	enum Format {JPG, PNG, RAW}
	Integer width
	Integer height

	FileMedia media
	Format format

	String description

	Long originalImageId

	static constraints = {
	}

	static  hasMany = [tags: HashTag, variants: Image]
	static embedded = ['media']

	static mapping = {
		tags fetch: 'join'
	}
}
